package com.lang.service;

import com.lang.entity.User;

import java.util.List;

/*
 * @Date : 2024/3/12 16:07
 * @Created by Lang
 * @ProjectName : LclShop
 */
public interface UserService {
    String getUserByName(String username);
    int addUser(User user);

    User getUserByCode(String code);

    int updateUserStatus(int uId);

    User login(String username, String password);

    User getUserByCookie(String username, String password);

    User adminLogin(String username, String password);

    List<User> list();

    List<User> search(String username, String gender);

    int deleteUser(String id);
}
